from datetime import time
t=time(18,19,20,21)
h=t.hour;m=t.minute;s=t.second;ms=t.microsecond
print(t,h,m,s,ms)
tistr=t.isoformat()
tstr=t.strftime('%H时%M分%S秒%f微秒')
print(tistr,tstr)
u=t.replace(hour=8,minute=8,second=8)
print(u)
